package min.chapter.three;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;

public class InjectionObjectAcquisition {

	public static void main(String[] args){
		ApplicationContext context= new FileSystemXmlApplicationContext("src/min/chapter/three/Injection.xml");
		
		
		InjectionInterface obj=(InjectionInterface)context.getBean("service");
		System.out.println("Start....");
		obj.printMessage();
		System.out.println("End.....");
	}
}
